<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <table style="width: 98%; border-collapse: collapse" class="datagrid" cellspacing="0" rules="rows" align="center" border="1">
      <tbody>
        <tr class="datagridHeader">
          <td>
            Url
          </td>
        </tr>
        <xsl:for-each select="SearchResilts/Result">
          <tr>
            <xsl:if test="position() mod 2 = 1">
              <xsl:attribute name="class">datagridAlterRow</xsl:attribute>
            </xsl:if>
            <td>
              <a target="_blank">
                <xsl:attribute name="href">
                  <xsl:value-of select="Url"/>
                </xsl:attribute>
                <xsl:attribute name="title">
                  <xsl:value-of select="Url"/>
                </xsl:attribute>
                <xsl:value-of select="Title"/>
              </a>
              <br />
              <xsl:value-of select="snippet"/>
              <br />
              <xsl:value-of select="Cached"/>
            </td>
          </tr>
        </xsl:for-each>
        <tr>
          <td>
            <span class="_aspLabel" style="cursor:pointer;" title="Previous">
              <xsl:attribute name="onclick">Page('<xsl:value-of select="SearchResilts/@ResultType"/>',<xsl:value-of select="SearchResilts/@PageNo" />,<xsl:value-of select="SearchResilts/@TotalPage" />,-1);</xsl:attribute>
                &lt; Prev
            </span>
            <span style="padding-left:5px;"></span>
            <span class="_aspLabel" style="cursor:pointer;" title="Next">
              <xsl:attribute name="onclick">Page('<xsl:value-of select="SearchResilts/@ResultType"/>',<xsl:value-of select="SearchResilts/@PageNo" />,<xsl:value-of select="SearchResilts/@TotalPage" />,1);</xsl:attribute>
              Next &gt;
            </span>
          </td>
        </tr>
      </tbody>
    </table>
  </xsl:template>
</xsl:stylesheet>

